package com.osfw.dbadminer.service.config;

import com.baomidou.mybatisplus.extension.service.IService;
import com.osfw.dbadminer.entity.config.DbaConfigScope;
import com.osfw.system.entity.manage.SysUser;

import java.util.List;

/**
 * 数据库操作权限范围配置 服务层
 */
public interface IDbaConfigScopeService extends IService<DbaConfigScope> {

    List<DbaConfigScope> selectScopeList(DbaConfigScope scope);

    boolean authUsers(Long connectId, String databaseName, String datatableName, String userIds);

    List<Long> selectConnectIdsByUser(SysUser sysUser);

    List<String> selectDatabaseNamesByConnectAndUser(Long connectId, SysUser sysUser);
}
